New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dialog to set start and end records for export #2626
Conversation
I've added a DSL that wraps jQuery UI modals over in #1815. Maybe this could use that once it's merged. |
Definitely - that looks great. Are you happy with the changes to |
Any suggestion to make it export the complete database?
|
Set start to 1 and leave end blank. |
I would not like to have a dialog asking for records
|
@abhimediratta if you have a better idea then please discuss it over in #2449, or even open your own PR if you know exactly what you want. |
Please let me know if there is a full export option. I have raised a query
|
Yeah I saw that, but "open source" doesn't mean "ask for features from random people on the internet and just expect them to do it". Right now no such feature exists, and we're working to change that. But if you're going to complain about the work done by @ball-hayden then you should suggest an alternative and/or implement it. |
I will start working on it. I apologize, I thought there must have been a |
Perhaps an idea would be to have a config option to either:
Do you think it would be worth having a clear "all" option in the dialog (radio button all / select records)? |
@ball-hayden I like the thought of this, but I would like to see an inheritable setting that we could specify for the app, per namespace, or per resource with the options you mentioned above. I definitely don't want the default behavior to be a modal popup for my projects either :) |
While I'm not in love with the thought of a modal popup either, I think in any way promising to the user or developer that Active Admin can handle exporting all records is the wrong way to go. There either needs to be a hard limit like we had before, or some UI to help the user export the data in batches. |
Slightly messily, I've rebased onto #1815 to use @seanlinsley's dialog DSL. I'm going to have a look at adding configuration options. |
thanks to @chrise86 for the updated CSS so this isn't horribly ugly
I'm going to close this, as #3038 seems to be a much better solution. |
In response to #2449, I've created a modal dialog for setting start and end records when exporting using download links.
The PR also modifies apply_pagination so that it respects
export[:start]
andexport[:end]
parameters.Related: #1924